//
//  JavascriptSource.h
//  iCodeMac
//
//  Created by Andrew Barry on 14/03/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "ProjectDocument.h"

@class SourceTextView;

@interface JavascriptSource : ProjectDocument {
	IBOutlet SourceTextView *textview; 
	NSString *savedSource;
}
-(NSString *) documentFile;
-(void) showError: (NSString *) message atLine: (int) lineno forScript: (NSString *) filename ;
-(void) updateEditEnabled;
+(bool)precompileSource: (NSString *) path;
@end
